//
//  AddViewController.m
//  TipsProject
//
//  Created by Suny on 15/5/2.
//  Copyright (c) 2015年 Suny. All rights reserved.
//

#import "AddViewController.h"
#import "TopicListViewController.h"
#import "SubTopicViewcontroller.h"
#import "UIBarButtonItem+BaseFramework.h"
@interface AddViewController ()

@end

@implementation AddViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/


- (void)tabViewControllerSingleTap:(TabViewController *)tabBarController
{
	
	TopicListViewController *tpoicList = [[TopicListViewController alloc] init];
	
	
	SubTopicViewcontroller *subpicList = [[SubTopicViewcontroller alloc] init];
	
	SideslipViewController *sideslipViewController = [[SideslipViewController alloc] init];

	sideslipViewController.hasNavigationBar = YES;
	[sideslipViewController setNavigationTitle: @"添加技巧"];
	sideslipViewController.MainVC = tpoicList;
	sideslipViewController.RightVC = subpicList;
	
	sideslipViewController.RightSContentOffset = 120;
	sideslipViewController.RightSContentScale = 1;
	sideslipViewController.mainBlackCoverMaxAlpha = 0;

	
	NavigationController *navigation = [[NavigationController alloc] init];
	[navigation pushViewController:sideslipViewController animated:NO];
	
	[self presentViewController:navigation
					   animated:YES 
					 completion:nil];
	
}

@end
